import layoutVariety.MainWindow;
import layoutVariety.Box;
import layoutVariety.Button;
import layoutVariety.WidgetFactory;
import layoutVariety.Widget;
import layoutVariety.AlignDirection;


package integration
{
	object BrowserApp 
	{ 
	  
	  
     def main(args: Array[String]) 
     {       
	  val gui = program
	  gui.mainWindow.setVisible()
	  

     }
     
      def handler() = {println("click!")}
	}
	
	object someObject
	{
	  var mw : MainWindow = null
	  val wf = WidgetFactory
     
     def hope()
     {
    	  mw = new MainWindow
                    
          val box1 = wf.getWidget("box").asInstanceOf[Box]
	      box1.setAlignment(AlignDirection.Ver)
	      
	      val button1 = wf.getWidget("button").asInstanceOf[Button]
	      val button2 = wf.getWidget("button").asInstanceOf[Button]
	      box1.addWidget(button1);
	      box1.addWidget(button2);
	      
	      mw.setMainBox(box1)
	      mw.maximize();
	      
	      mw.addWidget("button1",button1)
	      mw.addWidget("button2",button2)
	      
	     
	      
     }
     
    
	}
}